import request from '@/utils/request'
//医生列表
export function getDoctorList() {
  return request({
    url: '/admin/reg/docinfo',
    method: 'get'
  })
}
//挂号记录列表
export function getRegistrationList(data) {
  return request({
    url: '/admin/reg/list',
    method: 'post',
    data
  })
}
//挂号提交
export function getRegistrationSubmit(data) {
  return request({
    url: '/admin/reg/submit',
    method: 'post',
    timeout:75000,
    data
  })
}
//获取科室
export function getDepartment(data) {
  return request({
    url: '/admin/org/departments/list',
    method: 'post',
    data
  })
}
//获取医生
export function getDoctorment(id) {
  return request({
    url: `/admin/org/user/doctor?id=${id}`,
    method: 'get',
  })
}
//获取挂号类型
export function getRegistrationType() {
  return request({
    url: '/admin/reg/typelist',
    method: 'get',
  })
}
//退号
export function noNum(id) {
  return request({
    url: `/admin/reg/retreat/${id}`,
    method: 'post',
  })
}
//获取挂号信息
export function getRegistrationInfo(id) {
  return request({
    url: `/admin/reg/registerinfo?id=${id}`,
    method: 'get',
  })
}
